package com.dpiinc.TechPage.oss

import com.dpiinc.TechPage.AIWriteApplication
import com.dpiinc.TechPage.R

/**
 * App update status
 * Created by X on 2018/2/14.
 */
enum class FileDownloadStatus {
    NOT_STARTED {
        override fun toString(): String {
            return ""
        }
    },
    PENDING {
        override fun toString(): String {
            return AIWriteApplication.instance().resources.getString(R.string.file_download_line_up)
        }
    },
    CONNECTED {
        override fun toString(): String {
            return AIWriteApplication.instance().resources.getString(R.string.file_download_connected)
        }
    },
    DOWNLOADING {
        override fun toString(): String {
            return AIWriteApplication.instance().resources.getString(R.string.file_downloading)
        }
    },
    DOWNLOAD_ERROR {
        override fun toString(): String {
            return AIWriteApplication.instance().resources.getString(R.string.file_download_error)
        }
    },
    COMPLETED {
        override fun toString(): String {
            return AIWriteApplication.instance().resources.getString(R.string.file_download_ok)
        }
    }
}